// Package user @program: gateway
//@author: edte
//@create: 2021-12-29 09:22
package user

// User 数据库查询表单 映射数据库表users
type User struct {
	Id          int    `gorm:"primaryKey"`
	UserPhone   string `gorm:"unique"`
	Password    string
	EmailNumber string
	NickName    string
	Status      bool
	//IsAlive     bool
}

// UpdateJson 数据更新表单
type UpdateJson struct {
	Id           int    `json:"id"`
	NewPhone     string `json:"new_phone"`
	Phone        string `json:"phone"`
	Token        string `json:"token"`
	OldPassword  string `json:"oldPassword"`
	NewPassword1 string `json:"newPassword1"`
	NewPassword2 string `json:"newPassword2"`
	Email        string `json:"email"`
	NickName     string `json:"nickName"`
}
